package cn.kicsy.www.anonymous_bbs.service;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service
public class AdminService {
    
    @Value("${admin.password}")
    private String adminPassword;
    
    /**
     * 验证管理员密码
     * @param password 要验证的密码
     * @return 是否验证成功
     */
    public boolean authenticate(String password) {
        return adminPassword.equals(password);
    }
}